const comment = require('../models/comment');
const { add, page, list, info, update, del } = require('./utils');

let addData = (body, res) => {
    add(comment, body, res);
};
let getPage = (body, res) => {
    page(comment, body, res, ['content']);
};
let getList = (body, res) => {
    list(comment, body, res);
};
let getInfo = (body, res) => {
    info(comment, body, res);
};
let updateData = (body, res) => {
    update(comment, body, res);
};
let deleteData = (body, res) => {
    del(comment, body, res);
};

module.exports = {
    addData,
    getPage,
    getList,
    getInfo,
    updateData,
    deleteData
};
